//
//  ModelOfFeedCommend.m
//  FreeTravel
//
//  Created by 徐康 on 16/8/31.
//  Copyright © 2016年 KX. All rights reserved.
//

#import "ModelOfFeedCommend.h"

@implementation ModelOfFeedCommend
- (void)setValue:(id)value forKey:(NSString *)key{
    NSMutableArray *array = [NSMutableArray array];
    if ([key isEqualToString:@"total"]) {
        self.total = [value integerValue];
    }if ([key isEqualToString:@"page"]) {
        self.page = [value integerValue];
    }if ([key isEqualToString:@"entry"]) {
        for (NSDictionary *dic in value) {
            ModelOfEntryCommend *model = [ModelOfEntryCommend modelWithDic:dic];
            [array addObject:model];
        }
        self.entry = array;
    }
}
- (void)setEntry:(NSMutableArray *)entry{
    _entry = entry;
}
@end
